.cardWrapper {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.collapsibleCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.3s ease;
}

.tabHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(to right, #f5f8fc, #eef1f8);
  border-bottom: 1px solid #e6e9f0;
  height: 36px;
}

.tabButtons {
  display: flex;
  height: 100%;
  align-items: center;
}

.tabItem {
  position: relative;
  height: 32px;
  line-height: 32px;
  padding: 0 20px;
  margin-right: 4px;
  cursor: pointer;
  color: #7a8ba3;
  font-size: 14px;
  text-align: center;
  background-color: #edf2f7;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabItem:hover {
  background-color: #e3eaf2;
  color: #5d8bbd;
}

.activeTab {
  background-color: #6d9ecc;
  color: #fff;
  position: relative;
  font-weight: 500;
}

.activeTab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 3px;
  background-color: #5d8bbd;
}

.activeTab:hover {
  background-color: #5d8bbd;
  color: #fff;
}

.cardActions {
  display: flex;
  gap: 4px;
}

.actionButton {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cardContent {
  flex: 1;
  overflow: auto;
  padding: 16px;
  height: calc(100% - 36px);
  display: flex;
  flex-direction: column;
  background-color: #fff;
  color: #333;
}

.tabs {
  height: 100%;
}

.tabs :global(.ant-tabs-content) {
  height: calc(100% - 46px);
  padding: 0;
}

.tabs :global(.ant-tabs-tabpane) {
  height: 100%;
  overflow-y: auto;
  padding: 16px;
}

.tabBarExtra {
  display: none;
}

/* 最大化状态 */
.maximized {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: calc(100vh - 40px) !important;
  z-index: 100;
  border-radius: 0 !important;
}

/* 折叠状态 - 左 */
.collapsedLeft {
  width: 36px !important;
  min-width: 36px !important;
  flex: 0 0 36px !important;
  overflow: hidden;
  height: auto !important;
}

/* 折叠状态 - 右 */
.collapsedRight {
  width: 36px !important;
  min-width: 36px !important;
  flex: 0 0 36px !important;
  overflow: hidden;
  height: auto !important;
}

/* 折叠状态 - 上 */
.collapsedUp {
  height: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  overflow: hidden;
}

/* 折叠状态 - 下 */
.collapsedDown {
  height: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  overflow: hidden;
}

/* 折叠内容样式 */
.collapsedContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 8px;
}

.collapsedLeftContent, .collapsedRightContent {
  flex-direction: column;
  padding: 8px 0;
  height: auto;
  min-height: 100%;
}

.collapsedUpContent, .collapsedDownContent {
  flex-direction: row;
  width: 100%;
}

/* 折叠标签列表 */
.collapsedTabs {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 8px;
  flex: 1;
}

.collapsedLeftContent .collapsedTabs, 
.collapsedRightContent .collapsedTabs {
  flex: 1;
  overflow-y: auto;
  max-height: none;
  height: auto;
}

.collapsedUpContent .collapsedTabs, 
.collapsedDownContent .collapsedTabs {
  flex-direction: row;
  flex: 1;
  overflow-x: auto;
  margin-bottom: 0;
  margin-right: 8px;
}

/* 折叠标签项 */
.collapsedTab {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #7a8ba3;
  transition: all 0.2s;
  background-color: #edf2f7;
  margin-bottom: 4px;
  text-align: center;
}

.collapsedLeftContent .collapsedTab, 
.collapsedRightContent .collapsedTab {
  writing-mode: vertical-lr;
  transform: none;
  margin-bottom: 8px;
  text-align: center;
  padding: 8px 4px;
  clip-path: polygon(0 10px, 100% 0, 100% calc(100% - 10px), 0 100%);
}

.collapsedUpContent .collapsedTab, 
.collapsedDownContent .collapsedTab {
  margin-right: 8px;
  padding: 4px 8px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.activeCollapsedTab {
  color: #fff;
  font-weight: bold;
  background-color: #6d9ecc;
}

.collapsedTitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  color: #7a8ba3;
}

.collapsedLeftContent .collapsedTitle, .collapsedRightContent .collapsedTitle {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  margin-bottom: 8px;
} 